package com.example.sjjg.utest.model

import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder

class MainService : Service() {
    var id = -1
    override fun onBind(intent: Intent?): IBinder? {
        return Binder()
    }
    override fun onCreate() {
        super.onCreate()
    }

    override fun onRebind(intent: Intent?) {
        super.onRebind(intent)
    }

    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
        id = startId
        return super.onStartCommand(intent, flags, startId)
    }
    override fun onDestroy() {
        super.onDestroy()
    }

}